package com.cosyhut.blocks.factory;

import com.cosyhut.blocks.jode.*;

public class MGeomBox extends MGeom {

	private float _x;
	private float _y;
	private float _z;
	
	public MGeomBox(String model, Material material, int x, int y, int z) {
		super(model, jodeConstants.dBoxClass, material);
		this._x = BFactory.units(x);
		this._y = BFactory.units(y);
		this._z = BFactory.units(z);
		init();
	}
	
	protected void calculateVolume() {
		this._volume = this._x * this._y * this._z;
	}
	//--------------------------------------------------------------------------
	public float getX() {
		return this._x;
	}
	public float getY() {
		return this._y;
	}
	public float getZ() {
		return this._z;
	}
}
